package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 系统配置信息对象 sys_config
 *
 * @author yfkj
 * @date 2021-10-12
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SysConfig extends com.ruoyi.common.core.web.domain.BaseEntity
{
    private static final long serialVersionUID = 1L;
    /** 系统配置信息主键 */
    @TableField(exist = true)
    @ApiModelProperty(value =  "${comment}")
    private Long configId;
    /** 参数名称 */
    @com.ruoyi.common.core.annotation.Excel(name = "参数名称")
    @TableField(exist = true)
    @ApiModelProperty(value =  "参数名称")
    private String configName;
    /** 参数键名 */
    @com.ruoyi.common.core.annotation.Excel(name = "参数键名")
    @TableField(exist = true)
    @ApiModelProperty(value =  "参数键名")
    private String configKey;
    /** 参数键值 */
    @com.ruoyi.common.core.annotation.Excel(name = "参数键值")
    @TableField(exist = true)
    @ApiModelProperty(value =  "参数键值")
    private String configValue;
    /** 系统内置(Y是 N否) */
    @com.ruoyi.common.core.annotation.Excel(name = "系统内置(Y是 N否)")
    @TableField(exist = true)
    @ApiModelProperty(value =  "系统内置(Y是 N否)")
    private String configType;
    public static final String CONFIG_ID="config_id";
    public static final String CONFIG_NAME="config_name";
    public static final String CONFIG_KEY="config_key";
    public static final String CONFIG_VALUE="config_value";
    public static final String CONFIG_TYPE="config_type";
    public static final String CREATE_BY="create_by";
    public static final String CREATE_TIME="create_time";
    public static final String UPDATE_BY="update_by";
    public static final String UPDATE_TIME="update_time";
    public static final String REMARK="remark";
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("configId", getConfigId())
                .append("configName", getConfigName())
                .append("configKey", getConfigKey())
                .append("configValue", getConfigValue())
                .append("configType", getConfigType())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
